<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
%>
<script type="text/javascript">
	function validate() {
		var beginTime = $("#beginTime").val();
		var endTime = $("#endTime").val();
		if(beginTime == '') {
			alert("开始日期不能为空");
			return false;
		}
		if(endTime == '') {
			alert("结束日期不能为空");
			return false;
		}
		var bt = Date.parse(beginTime);
		var et = Date.parse(endTime);
		if(bt > et) {
			alert("开始日期不能大于结束日期");
			return false;
		}
		return true;
	}
</script>
<div class="pageHeader">
	<form action="<%=path %>/sellOrder/export.do" method="post">
	<div class="pageFormContent nowrap" layoutH="97">
		<dl>
			<dt>开始日期：</dt>
			<dd>
				<input id="beginTime" type="text" name="beginTime" class="date" readonly="true" />
			</dd>
		</dl>
		<dl>
			<dt>结束日期：</dt>
			<dd>
				<input id="endTime" type="text" name="endTime" class="date" readonly="true" maxDate="{%y}-%M-{%d+1}"/>
			</dd>
		</dl>
		<dl>
			<dt>状态：</dt>
			<dd>
			<select name="status">
					
					<option value="0" >未结账完成</option>
					<option value="1" >结账完成</option>
					<option value="2" >废弃</option>
					</select>
			</dd>
		</dl>
		<dl>
			<dt></dt>
			<dd>
				<button type="submit" onclick="return validate();">导出Excel</button>
			</dd>
		</dl>
	</div>
	</form>
</div>